package com.usabb.domain;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * 
 * <pre>
 * 标签关联表
 * </pre>
 * <small> 2019-08-19 18:03:26 | Aron</small>
 */
@Data
@TableName("promise_relation")
public class PromiseRelationDO  {
	@TableId
	private Long id;

	private String bizType;

    /** 月子中心 or 民宿 id */
    private Long bizId;

    /** 配套 id */
    private Long promiseId;




    public static PromiseRelationDO of(Long bizId, Long promiseId) {
        PromiseRelationDO relationDO = new PromiseRelationDO();
        relationDO.setBizId(bizId);
        relationDO.setPromiseId(promiseId);

        return relationDO;
    }


}
